﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Phone_Client.Commands_Utils;
using Phone_Client.Views;
using System.Collections.ObjectModel;

namespace Phone_Client.ViewModels
{
    public class SharingPageVM : IViewModelBase
    {
        #region Fields

        private ObservableCollection<SharingPageItemV> _newsfeedlist;
        private ObservableCollection<SharingUserV> _userlist;
        private ICommand _sharecmd;

        #endregion

        #region Properties

        public ObservableCollection<SharingPageItemV> NewsFeedList 
        {
            get { return _newsfeedlist; }
            set
            {
                if (_newsfeedlist == value) return;
                _newsfeedlist = value;
                RaisePropertyChanged("NewsFeedList");
            }
        }

        public ObservableCollection<SharingUserV> UserList
        {
            get { return _userlist; }
            set
            {
                if (_userlist == value) return;
                _userlist = value;
                RaisePropertyChanged("UserList");
            }
        }
        #endregion

        #region Commands

        private ICommand ShareCmd
        {
            get { return _sharecmd; }
        }

        #endregion

        #region Commands Functions

        public void ShareFunc() { }

        #endregion

        #region Functions

        #endregion

        #region Ctor

        public SharingPageVM()
        {
            _newsfeedlist = new ObservableCollection<SharingPageItemV>();
            _userlist = new ObservableCollection<SharingUserV>();
            _sharecmd = new RelayCommand(ShareFunc) { IsEnabled = true };
        }

        #endregion
    }
}
